package com.ymttest.database.sqlwapper;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.YmtCoupon;
import com.ymttest.database.model.coupon;
import com.ymttest.database.model.couponbatch;
import com.ymttest.database.model.couponbatchext;
import com.ymttest.utils.EnvSetup;

public class couponbatchextWapper {
	SqlManager manager;

    public couponbatchextWapper() {
        manager = new SqlManager("mysqlcoupon" + EnvSetup.getEnv());
    }

    public  couponbatchext selectByPrimaryKey(Integer BatchId){
    	couponbatchext couponbatchext=new couponbatchext();
    	List<couponbatchext> results = manager
                .getSelectResults(
                        "com.ymttest.database.mapping.couponMapper.selectByPrimaryKey",
                        BatchId);
    	if(results.size()>0)
    	{
    		couponbatchext=results.get(0);
    	}
        manager.commit();
        return couponbatchext;
    }

  
    public static void main(String[] args) {
//        YmtCouponWapper test = new YmtCouponWapper();
//
//        System.out.println(test.useCoupon(20238699, "AIL7PT3W1",null));
//        // test.insertYmtCouponSetting(3,11);
//        // Logger.debug(test.getLastYmtCouponSettingId());


    }
}
